Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support subbuffer size option #85

Merged
merged 15 commits into from
Oct 5, 2023

Conversation

ymski
Copy link
Contributor

@ymski ymski commented Aug 23, 2023

Description

In caret, the lttng buffer size was hard-coded in the forked ros2_tracing.
This was done to prevent trace data from being lost.
In ros2_tracing since iron, it is possible to change the buffer size of lttng externally.
This PR provides an option to specify the buffer size from the ros2caret cli.

usage:

ros2 caret record --subbuffer-size-ust 65536 --subbuffer-size-kernel 65536
  • Notes
    • buffer size must be power of two.
    • these options are available in iron (and rolling)

Related links

Notes for reviewers

ros2/ros2_tracing#51

This PR must be merged after #84.

Pre-review checklist for the PR author

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

  • The PR has been properly tested.
  • The PR has been reviewed.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.
  • The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

@ymski ymski requested a review from isp-uetsuki August 23, 2023 06:31
@ymski ymski force-pushed the support_subbuffer_size_option branch 3 times, most recently from 9adefd1 to 2b5a9fb Compare August 23, 2023 10:13
ros2caret/verb/caret_record_init.py Outdated Show resolved Hide resolved
ros2caret/verb/record.py Outdated Show resolved Hide resolved
@ymski ymski requested a review from isp-uetsuki August 24, 2023 00:59
isp-uetsuki
isp-uetsuki previously approved these changes Aug 24, 2023
Copy link
Contributor

@isp-uetsuki isp-uetsuki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

nabetetsu
nabetetsu previously approved these changes Sep 1, 2023
Copy link
Contributor

@nabetetsu nabetetsu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍
I have tested ros2 caret record command in iron environment.

when specifing --subbuffer-size-{ust,kernel} option:

ros2 caret record --subbuffer-size-ust 65536 --subbuffer-size-kernel 65536
UST tracing enabled (1 events)
kernel tracing disabled
context (3 fields)
writing tracing session to: /root/.ros/tracing/session-20230901023936
press enter to start...
subbuffer ust = 65536
subbuffer kernel =  65536
press enter to stop...
stopping & destroying tracing session

without any option:

# ros2 caret record
UST tracing enabled (1 events)
kernel tracing disabled
context (3 fields)
writing tracing session to: /root/.ros/tracing/session-20230901023906
press enter to start...
subbuffer ust = 32768
subbuffer kernel =  131072
press enter to stop...
stopping & destroying tracing session

@ymski ymski dismissed stale reviews from nabetetsu and isp-uetsuki via 0359359 October 4, 2023 11:56
@ymski ymski force-pushed the support_subbuffer_size_option branch from d0aa069 to 0359359 Compare October 4, 2023 11:56
@ymski
Copy link
Contributor Author

ymski commented Oct 4, 2023

Conflict occurred because another PR was merged.
@nabetetsu Could you approve this PR?

@ymski ymski merged commit 7a97b1a into tier4:main Oct 5, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants